<?php
if(isset($_SESSION['lang']))
    require_once "./language_files/onlineReview_" . $_SESSION['lang'] . ".php";
else
    require_once "./language_files/onlineReview_en.php";
require_once 'functions.php';
function comment_on_pdf($text,$article_id,$span_id)
{
    global $lang;
    $sQuery="INSERT INTO Comment(article_id,span_id,text) VALUES ($article_id ,$span_id ,$text)";
    $rsResult=mysql_query($sQuery,$conn);


    if(!$rsResult)
    {
        echo "error" . mysql_error();
    }
    else
    {
        echo $lang['message'];
    }
}
?>
